<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:83:"E:\phpset\phpSet\www\new shop\shop\public/../application/index\view\issues\mod.html";i:1541832116;s:72:"E:\phpset\phpSet\www\new shop\shop\application\index\view\comm\left.html";i:1541827692;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>商城后台</title>
    <link rel="shortcut icon" href="/new shop/shop/public/static/favicon.ico">
    <link href="/new shop/shop/public/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/animate.min.css" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/new shop/shop/public/static/layer/layer.js"></script>
    <script src="/new shop/shop/public/static/js/jia.js"></script>
    <script>
        // $(function(){
        //     //self.location.href="https://www.kancloud.cn/manual/thinkphp5/177529";
        //     $(window.parent.document).find("#iframe").attr("src", "https://www.kancloud.cn/manual/thinkphp5/177529");
        // });
    </script>
</head>
</html>

<body>
<div class="col-sm-6">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>修改商品信息</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal m-t" id="commentForm" action="<?php echo url('index/issues/moddo'); ?>" method="post"  enctype="multipart/form-data">
                <div class="form-group">
                    <label class="col-sm-3 control-label">选择品牌：</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="brandid">
                            <?php if(is_array($brandid) || $brandid instanceof \think\Collection || $brandid instanceof \think\Paginator): $i = 0; $__LIST__ = $brandid;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?>
                            <option value="<?php echo $data['id']; ?>" <?php if($dataa['brandid']==$data['id']): ?>selected="selected"<?php endif; ?>><?php echo $data['name']; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">选择该商品的分类：</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="classifyid">
                            <?php if(is_array($classifyid) || $classifyid instanceof \think\Collection || $classifyid instanceof \think\Paginator): $i = 0; $__LIST__ = $classifyid;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?>
                            <option value="<?php echo $data['id']; ?>" <?php if($dataa['classifyid']==$data['id']): ?>selected="selected"<?php endif; ?>><?php echo $data['name']; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品名：</label>
                    <div class="col-sm-9">
                        <input id="cname" name="name" minlength="2" type="text" class="form-control" required="" aria-required="true" value="<?php echo $dataa['iname']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品原图片：</label>
                    <div class="col-sm-9">
                        <img src="/new shop/shop/public/static/img_issue/<?php echo $dataa['photo']; ?>"   width="70px">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品图片：</label>
                    <div class="col-sm-9">
                        <input type="file" name="image" class="form-control" >
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品属性：</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="attr">
                            <option value="1" <?php if($dataa['attr']==1): ?>selected="selected"<?php endif; ?>>推荐</option>
                            <option value="2"<?php if($dataa['attr']==2): ?>selected="selected"<?php endif; ?>>精品</option>
                            <option value="3"<?php if($dataa['attr']==3): ?>selected="selected"<?php endif; ?>>热销</option>
                            <option value="4"<?php if($dataa['attr']==4): ?>selected="selected"<?php endif; ?>>新品</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品库存：</label>
                    <div class="col-sm-9">
                        <input type="text" name="inventory" class="form-control" placeholder="请输入文商品库存" value="<?php echo $dataa['inventory']; ?>"> <span class="help-block m-b-none">必须输入商品库存</span>

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否上架：</label>
                    <div class="col-sm-9">
                        <label class="radio-inline">
                            <input type="radio" checked="" value="1" id="optionsRadios1" name="putaway" <?php if($dataa['putaway']==1): ?>checked="checked"<?php endif; ?>>上架</label>
                        <label class="radio-inline">
                            <input type="radio" value="0" id="optionsRadios2" name="putaway"<?php if($dataa['putaway']==0): ?>checked="checked"<?php endif; ?>>下架</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">市场价：</label>
                    <div class="col-sm-9">
                        <input type="text" name="bazaar" class="form-control" placeholder="请输入市场价" value="<?php echo $dataa['bazaar']; ?>￥">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">本站价：</label>
                    <div class="col-sm-9">
                        <input type="text" name="stand" class="form-control" placeholder="请输入本站价" value="<?php echo $dataa['stand']; ?>￥">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">活动价：</label>
                    <div class="col-sm-9">
                        <input type="text" name="active" class="form-control" placeholder="请输入活动价" value="<?php echo $dataa['active']; ?>￥">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">成本价：</label>
                    <div class="col-sm-9">
                        <input type="text" name="cost" class="form-control" placeholder="请输入成本价" value="<?php echo $dataa['cost']; ?>￥">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label" for="-NaN">审核情况：</label>
                    <div class="col-sm-9">
                        <label class="radio-inline" for="-NaN">
                            <input type="radio" checked="" value="1" id="-NaN" name="audit"<?php if($dataa['audit']==1): ?>checked="checked"<?php endif; ?>>通过</label>
                        <label class="radio-inline" for="-NaN">
                            <input type="radio" value="0" id="-NaN" name="audit"<?php if($dataa['audit']==0): ?>checked="checked"<?php endif; ?>>未通过</label>
                    </div>
                </div>
                <input type="hidden" name="id" value="<?php echo $dataa['aid']; ?>">
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit" name="submit">发布</button>
                    </div>
                </div>
            </form>
        </div>
    </div >
</div>
</body>
